package com.asdf.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.asdf.demo.service.FeignService;

/**
 *public class TestController{ }
 * @author ASDFGH
 * @date 2021年1月11日 下午3:16:13
 */
@RestController
public class NacosConsumerFeignController {
	@Autowired
	private FeignService feignService;
	
	@GetMapping("/feign/hi")
	public String test() {
		return feignService.test("Hi Feign");
	}
	@GetMapping("/hello")
	public String hello() {
		return feignService.hello();
	}
}
